<table><tr><?
  
  function showStats(&$gds, $stats)
  {
    $result = array();
    foreach(explode(',', $stats) as $stat)
    {
      $attr = getDefault($gds['stats'][$stat.'.effective'], $gds['stats'][$stat]);
      if ($attr != '') $result[] = $stat.': '.$attr;
    }
    return(implode(', ', $result));
  }
  
  foreach($this->groupMembers as $gds)
  {
    ?><td width="55">
      <a href="party/index"><img
        <?= toolTip(':<b>'.$gds['c_name'].' ('.$gds['c_level'].')</b><br/><br/>'.showStats($gds, 'MP,STR,CON')) ?>
        height="50" src="<?= getDefault($gds['u_fb_pic_square'], 'img/'.$gds['c_icon'].'.png') ?>"/><br/>
      <span<? if ($gds['p_hp'] < $gds['p_hp_max']) print(' style="color: red;"'); ?>></a>
      <?= $gds['p_hp'].'/'.$gds['p_hp_max'] ?></span>
    </td><?
  }
  
?></tr></table>